'''
Created on 2012/02/12

@author: mercury
'''
import os,sys

sys.path.insert(0, os.path.join(os.path.dirname(__file__),'..'))

from cocos.director import *
from cocos.scene import *
from cocos.layer import *
from cocos.sprite import *
from cocos.text import *

class HelloWorld(Layer):
    def __init__(self):
        super(HelloWorld,self).__init__()
        
        label = Label('Hello,World',
                      font_name='Times New Roman',
                      font_size=32,
                      anchor_x='center',anchor_y='center')
        x,y = director.get_window_size()
        print x,y
        label.position = x/2,y/2
        
        self.add(label)
        

if __name__ == '__main__':
    director.init()
    director.run( Scene( HelloWorld() ) )